/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package myModel;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
/**
 *
 * @author l080154
 */
public class DAO {

    static Connection conn;
    public Connection makeConn() throws ClassNotFoundException, SQLException
    {
       Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
	conn = DriverManager.getConnection("Jdbc:odbc:db");

        return conn;
    }
    public void closeConn() throws SQLException
    {
        conn.close();
    }
}
